#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main()
{
    ll a, b;
    cin >> a >> b;
    if(b==1)
    {
        if(a==1)
        {
            cout << "-" << endl;
            cout << "move";
        }
        if(a==0)
        {
            cout << "-" << endl;
            cout << "stop";
        }
        if(a==2)
        {
            cout << "-" << endl;
            cout << "stop";
        }
    }
    else {
        if (a == 1)
        {
            cout << "dudu" << endl;
            cout << "move";
        }
        if (a == 0)
        {
            cout << "biii" << endl;
            cout << "stop";
        }
        if (a == 2)
        {
            cout << "-" << endl;
            cout << "stop";
        }
    }
}